﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class AcademicOrganizationTypeConfiguration : EntityConfiguration<AcademicOrganizationType>
    {
        public AcademicOrganizationTypeConfiguration()
        {
            Property(aot => aot.AcademicOrganizationTypeID).IsIdentity();
            MapSingleType(u => EntityMap.Row(
               EntityMap.Column(u.AcademicOrganizationTypeID),
               EntityMap.Column(u.Description)
               )).ToTable("AcademicOrganizationType");
        }
    }
}
